package com.ruoyi.dataserver.controller;


import com.ruoyi.dataserver.service.IStatisticsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName intelligent-city
 * @Package com.lab.dataserver.controller
 * @ClassName StatisticController
 * @Description 区域统计
 * @Company LAB
 * @Author LXK
 * @Date 2020/6/19 9:39
 * @UpdateUser
 * @UpdateDate
 * @UpdateRemark
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/statistic")
@Slf4j
public class StatisticController {
    @Autowired
    private IStatisticsService statisticsService;
    @RequestMapping("/pipe")
    public Long pipeStatistic(){
         return statisticsService.queryForObject();
    }
}
